import {
  getRequest,
  postRequest,
  postJsonRequest
} from '@/api/axios.js'

// 公告
// 获取课程对应的评论
export const getComments = (params) => {
  return postRequest('/sys/comment-area/getComments', params)
}
//获取对应评论的回复
export const getReply = (params) => {
  return postRequest('/sys/comment-area/getReply', params)
}
//发表评论
export const releaseComment = (params) => {
  return postJsonRequest('/sys/comment-area/releaseComment', params)
}
//发表评论回复
export const save = (params) => {
  return postJsonRequest('/sys/comment-reply/save', params)
}